var vue=new Vue({
   el:'#cqr',
   data:{

   } ,
    methods:{
       selectCourse:function (courseId) {
           var data={
               courseId:courseId
           }
           $.ajax({
               url:'service/selectCourseService.jsp',
               data:data,
               type:'POST',
               dataType:'JSON',
               success:function (msg) {
                   window.location.reload()
                   alert(msg.message);
               }
           });
       },
        abandonCourse:function (courseId) {
            var data={
                courseId:courseId
            }
            $.ajax({
                url:'service/abandonCourse.jsp',
                data:data,
                type:'POST',
                dataType:'JSON',
                success:function (msg) {
                    window.location.reload();
                    alert(msg.message);
                }
            });
        }
    }
});